package com.tzm.gaflow.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * <p>
 * 业务流程日志
 * </p>
 *
 * @author tzm
 * @since 2021-03-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="GaFlowTasklog", description="业务流程日志")
public class GaFlowTasklog extends Model<GaFlowTasklog> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "业务流程日志ID")
    @TableId(value = "task_log_id",type = IdType.ASSIGN_UUID)
    private String taskLogId;

    @ApiModelProperty(value = "业务日志ID")
    @TableField("bussines_main_id")
    private String bussinesMainId;

    @ApiModelProperty(value = "业务流程ID")
    @TableField("flow_id")
    private String flowId;

    @ApiModelProperty(value = "业务流程名称")
    @TableField("flow_name")
    private String flowName;

    @ApiModelProperty(value = "业务主键")
    @TableField("bussines_key")
    private String bussinesKey;

    @ApiModelProperty(value = "业务类型")
    @TableField("bussines_type")
    private String bussinesType;

    @ApiModelProperty(value = "上级业务流程ID")
    @TableField(value = "previous_flow_id", updateStrategy = FieldStrategy.IGNORED, insertStrategy = FieldStrategy.IGNORED)
    private String previousFlowId;

    @ApiModelProperty(value = "上级业务流程名称")
    @TableField(value = "previous_flow_name", updateStrategy = FieldStrategy.IGNORED, insertStrategy = FieldStrategy.IGNORED)
    private String previousFlowName;

    @ApiModelProperty(value = "下级业务流程ID")
    @TableField(value = "next_flow_id", updateStrategy = FieldStrategy.IGNORED, insertStrategy = FieldStrategy.IGNORED)
    private String nextFlowId;

    @ApiModelProperty(value = "下级业务流程名称")
    @TableField(value = "next_flow_name", updateStrategy = FieldStrategy.IGNORED, insertStrategy = FieldStrategy.IGNORED)
    private String nextFlowName;

    @ApiModelProperty(value = "办理人")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "办理角色")
    @TableField("role_id")
    private String roleId;

    @ApiModelProperty(value = "办理时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "办理结果")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "办理用时")
    @TableField("use_time")
    private String useTime;

    @ApiModelProperty(value = "流程状态")
    @TableField("task_state")
    private String taskState;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

}
